<script setup lang="ts">
import { darkTheme } from 'naive-ui'
import { useAppStore } from '@/stores/modules/app'

const appStore = useAppStore()

let language = computed(() => appStore.getLanguage)
</script>
<template>
	<n-config-provider
		:theme="appStore.isDarkTheme ? darkTheme : null"
		:locale="language.language"
		:date-locale="language.dateLanguage"
	>
		<n-dialog-provider>
			<n-message-provider>
				<router-view />
			</n-message-provider>
		</n-dialog-provider>
	</n-config-provider>
</template>
